package com.virus.coronavirus.model.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
public class TrackEditVO {
    @NotNull(message = "轨迹经度不能为空")
    private Double lng;

    @NotNull(message = "轨迹纬度不能为空")
    private Double lat;

    @NotNull(message = "用户id不能为空")
    private Long user_id;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date track_time;

    @NotBlank(message = "轨迹地点名不能为空")
    private String track_name;
}
